import request from '/@/utils/request';

// 查询餐饮商家打印机列列表
export function listPrinter(query?: Object) {
  return request({
    url: '/module/mer/printer/list',
    method: 'get',
    params: query
  })
}

// 查询餐饮商家打印机列详细
export function getPrinter(id?: number) {
  return request({
    url: '/module/mer/printer/' + id,
    method: 'get'
  })
}

// 新增餐饮商家打印机列
export function addPrinter(data?: Object) {
  return request({
    url: '/module/mer/printer',
    method: 'post',
    data
  })
}

// 修改餐饮商家打印机列
export function updatePrinter(data?: Object) {
  return request({
    url: '/module/mer/printer',
    method: 'put',
    data
  })
}

// 删除餐饮商家打印机列
export function delPrinter(id?: number) {
  return request({
    url: '/module/mer/printer/' + id,
    method: 'delete'
  })
}

// 导出餐饮商家打印机列
export function exportPrinter(query?: Object) {
  return request({
    url: '/module/mer/printer/export',
    method: 'get',
    params: query
  })
}
